<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Format Strings</title>
<link rel="stylesheet" type="text/css" href="../C/C.css">
<script type="text/javascript" src="../C/highlight.pack.js"></script><script>
document.addEventListener('DOMContentLoaded', function() {
  var matches = document.querySelectorAll('code.syntax')
  for (var i = 0; i < matches.length; i++) {
    hljs.highlightBlock(matches[i]);
  }
}, false);</script><script type="text/javascript" src="../C/yelp.js"></script>
</head>
<body lang="ru" dir="ltr"><main><div class="page">
<header><div class="inner pagewide"><div class="trails" role="navigation"><div class="trail">
<a class="trail" href="index.html" title="Помощь Tagger">Помощь Tagger</a> » </div></div></div></header><article><div class="hgroup pagewide"><h1 class="title"><span class="title">Format Strings</span></h1></div>
<div class="region">
<div class="contents pagewide"><p class="p">This page explains the use of format strings for <span class="code">File Name to Tag</span> and <span class="code">Tag to File Name</span> conversions.</p></div>
<section id=""><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Формат</span></h2></div>
<div class="region"><div class="contents pagewide">
<p class="p">Strings of any format with properties wrapped in percent signs (%).</p>
<div class="note" title="Примечание">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
  <path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
 </g>
</svg><div class="inner">
<div class="title title-note"><h3><span class="title">Пример</span></h3></div>
<div class="region"><div class="contents">
<p class="p">Format String: <span class="code">%artist%- %title%</span></p>
<p class="p">Имя файла: <span class="code">Исполнитель1 - Композиция1.mp3</span></p>
<p class="p">При использовании преобразования <span class="code">Имён файлов в теги</span> эта строка и это имя файла создадут тег исполнителя <span class="code">Исполнитель1</span> и название <span class="code">Композиция1</span>.</p>
</div></div>
</div>
</div>
</div></div>
</div></section><section id=""><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Поддерживаемые свойства</span></h2></div>
<div class="region"><div class="contents pagewide">
<div class="list"><div class="inner"><div class="region"><ul class="list">
<li class="list"><p class="p"><span class="code">title</span> (название)</p></li>
<li class="list"><p class="p"><span class="code">artist</span> (исполнитель)</p></li>
<li class="list"><p class="p"><span class="code">album</span> (альбом)</p></li>
<li class="list"><p class="p"><span class="code">year</span> (год)</p></li>
<li class="list"><p class="p"><span class="code">track</span> (дорожка)</p></li>
<li class="list"><p class="p"><span class="code">tracktotal</span> (количество дорожек)</p></li>
<li class="list"><p class="p"><span class="code">albumartist</span> (исполнитель альбома)</p></li>
<li class="list"><p class="p"><span class="code">genre</span> (жанр)</p></li>
<li class="list"><p class="p"><span class="code">comment</span> (комментарий)</p></li>
<li class="list"><p class="p"><span class="code">beatsperminute (bpm)</span> (ударов в минуту)</p></li>
<li class="list"><p class="p"><span class="code">composer</span> (композитор)</p></li>
<li class="list"><p class="p"><span class="code">description</span> (описание)</p></li>
<li class="list"><p class="p"><span class="code">discnumber</span> (номер диска)</p></li>
<li class="list"><p class="p"><span class="code">disctotal</span> (количество дисков)</p></li>
<li class="list"><p class="p"><span class="code">publisher</span> (издатель)</p></li>
<li class="list"><p class="p"><span class="code">publishingdate</span> (дата публикации)</p></li>
</ul></div></div></div>
<div class="note" title="Примечание">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
  <path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
 </g>
</svg><div class="inner"><div class="region"><div class="contents">
<p class="p">When using conversions, custom property names can also be used.</p>
<p class="p">Например, свойство с названием <span class="code">ENCODER</span> можно использовать как <span class="code">%encoder%</span>.</p>
</div></div></div>
</div>
</div></div>
</div></section><section id=""><div class="inner">
<div class="hgroup pagewide"><h2 class="title"><span class="title">Ignoring in File Name to Tag Conversion</span></h2></div>
<div class="region"><div class="contents pagewide">
<p class="p">When running <span class="code">File Name to Tag</span> conversion, an empty <span class="code">%%</span> can be specified to ignore part of the file name when reading it.</p>
<div class="note" title="Примечание">
<svg height="24" width="24" version="1.1">
 <g>
  <path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
  <path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
 </g>
</svg><div class="inner">
<div class="title title-note"><h3><span class="title">Пример</span></h3></div>
<div class="region"><div class="contents">
<p class="p">Format String: <span class="code">%%- %track%. %%</span></p>
<p class="p">Имя файла: <span class="code">Исполнитель1- 05. Композиция1.mp3</span></p>
<p class="p">This format string and this file name will create a tag with a track of <span class="code">05</span> and ignore the rest of the file name.</p>
</div></div>
</div>
</div>
</div></div>
</div></section><section class="links" role="navigation"><div class="inner">
<div class="hgroup pagewide"></div>
<div class="contents pagewide"><div class="links guidelinks"><div class="inner">
<div class="title"><h2><span class="title">Дополнительная информация</span></h2></div>
<div class="region"><ul><li class="links "><a href="index.html" title="Помощь Tagger">Помощь Tagger</a></li></ul></div>
</div></div></div>
</div></section>
</div>
<div class="clear"></div></article><footer><div class="inner pagewide"><div class="about ui-expander" role="contentinfo">
<div class="yelp-data yelp-data-ui-expander" data-yelp-expanded="false"></div>
<div class="inner">
<div class="hgroup"><h2><span class="title">Общие сведения</span></h2></div>
<div class="region"><div class="contents">
<div class="copyrights">
<div class="copyright">© 2023 Nicholas Logozzo</div>
<div class="copyright">© 2023 Nicholas Logozzo</div>
<div class="copyright">© 2023 Давид Лапшин</div>
<div class="copyright">© 2023 0куе</div>
</div>
<div class="credits">
<div class="credits-authors">
<div class="title"><span class="title">Написано</span></div>
<ul class="credits"><li>Nicholas Logozzo</li></ul>
</div>
<div class="credits-translators">
<div class="title"><span class="title">Переведено</span></div>
<ul class="credits">
<li>Давид Лапшин</li>
<li>0куе</li>
</ul>
</div>
<div class="credits-publishers">
<div class="title"><span class="title">Опубликовано</span></div>
<ul class="credits"><li>Nicholas Logozzo</li></ul>
</div>
<div class="credits-blank"></div>
<div class="credits-blank"></div>
</div>
<div class="license">
<div class="title"><span class="title">Creative Commons</span></div>
<div class="contents"><p class="p">Creative Commons Attribution 4.0 International License</p></div>
</div>
</div></div>
</div>
</div></div></footer>
</div></main></body>
</html>
